import Vue from 'vue'
import Router from 'vue-router'

//客户端页面

import product from '@/views/product/product'
import customerproduct from '@/views/product/customerproduct'
import productInfomation from '@/views/product/productInfomation'    
import customerproductInfomation from '@/views/product/customerproductInfomation'    
import leaseagreement from '@/views/product/leaseagreement'    
//import baidu from '@/views/product/baidu'    
import lease from '@/views/product/lease'    
import buy from '@/views/product/buy'    
//import homepage from '@/views/MemberCenter/homepage'    
import myself from '@/views/MemberCenter/myself'    
import fillmyselfinformation from '@/views/MemberCenter/fillmyselfinformation'    
import waitpayments from '@/views/MemberCenter/waitpayments'    
import waitpickgood from '@/views/MemberCenter/waitpickgood'    
import waitpaymentinformation from '@/views/MemberCenter/waitpaymentinformation' 
import completeorder from '@/views/MemberCenter/completeorder'
import dimensionalcode from '@/views/MemberCenter/dimensionalcode'
import completeorderinformation from '@/views/MemberCenter/completeorderinformation'
import settlementorder from '@/views/MemberCenter/settlementorder'  
import settlementorderinformation from '@/views/MemberCenter/settlementorderinformation'
import myselfaccount from '@/views/MemberCenter/myselfaccount'
import accountbill from '@/views/MemberCenter/accountbill'
import accountinformation from '@/views/MemberCenter/accountinformation'
import deposit from '@/views/MemberCenter/deposit'
import Memberinfo from '@/views/MemberCenter/Memberinfo'



//店家页面

import shop from '@/shop/page/shop'  
import store from '@/shop/store/store'  
import personalProfile from '@/shop/myself/personal-profile'  
import personalModification from '@/shop/myself/personal-modification' 
import myselfShop from '@/shop/store/myself-shop'  
import editshop from '@/shop/store/editshop'  
import order from '@/shop/store/order'  
import orderinformation from '@/shop/store/orderinformation'  
import userpick from '@/shop/store/userpick'  
import scan from '@/shop/store/scan'  
import equipmentsend from '@/shop/store/equipmentsend'  
import equipmentallocation from '@/shop/store/equipmentallocation'  
import apply from '@/shop/store/apply'  
import equipmentwarehousing from '@/shop/store/equipmentwarehousing'  
import stock from '@/shop/store/stock'  
import staffsave from '@/shop/staff/staffsave'  
import applyshop from '@/shop/store/applyshop'  
import staffdetail from '@/shop/staff/staffdetail'  
import addstaff from '@/shop/staff/addstaff'  
import transfer from '@/shop/store/transfer'  
import returnrequest from '@/shop/store/returnrequest'  
import returngoods from '@/shop/store/returngoods'  
import disinfect from '@/shop/store/disinfect'  
import disinfectapply from '@/shop/store/disinfectapply'  
import disinfectout from '@/shop/store/disinfectout'  





//业务员
import sign from '@/salesman/sign'
import salesman from '@/salesman/salesman'
import shops from '@/salesman/shops'
import shopinfo from '@/salesman/shopinfo'


import ewjloading from '@/loading/ewjloading'
import ewjmyselfloading from '@/loading/ewjmyselfloading'
import ewjmanageloading from '@/loading/ewjmanageloading'


Vue.use(Router)

export default new Router({
	name:"history",
  	routes: [
	    { 
	      	path: '/product',
	      	name:'product',
	      	component: product
	    },
	    { 
	      	path: '/customerproduct',
	      	name:'customerproduct',
	      	component: customerproduct,
	      	meta:{
	    		title:'易网健'
	    	}
	    },
	    {
	      	path: '/productInfomation',
	      	name:'productInfomation',
	      	component: productInfomation
	    },
	    {
	      	path: '/customerproductInfomation',
	      	name:'customerproductInfomation',
	      	component: customerproductInfomation
	    },
	     {
	      	path: '/leaseagreement',
	      	name:'leaseagreement',
	      	component: leaseagreement
	    },
	   {
	      	path: '/lease',
	      	name:'lease',
	      	component: lease
	    },
	     {
	      	path: '/buy',
	      	name:'buy',
	      	component: buy
	    },
	    {
	    	path:'/myself',
	    	name:'myself',
	    	component:myself,
	    	meta:{
	    		title:'易网健'
	    	}
	    },
	    {
	    	path:'/fillmyselfinformation',
	    	name:'fillmyselfinformation',
	    	component:fillmyselfinformation
	    },
	    {
	    	path:'/waitpayments',
	    	name:'waitpayments',
	    	component:waitpayments
	    },
	    {
	    	path:'/waitpickgood',
	    	name:'waitpickgood',
	    	component:waitpickgood
	    },
	    {
	    	path:'/waitpaymentinformation',
	    	name:'waitpaymentinformation',
	    	component:waitpaymentinformation
	    },
	    {
	    	path:'/completeorder',
	    	name:'completeorder',
	    	component:completeorder
	    },
	    {
	    	path:'/completeorderinformation',
	    	name:'completeorderinformation',
	    	component:completeorderinformation
	    },
	    {
	    	path:'/dimensionalcode',
	    	name:'dimensionalcode',
	    	component:dimensionalcode
	    },
	    {
	    	path:'/settlementorder',
	    	name:'settlementorder',
	    	component:settlementorder
	    },
	     {
	    	path:'/settlementorderinformation',
	    	name:'settlementorderinformation',
	    	component:settlementorderinformation
	    },
	     {
	    	path:'/myselfaccount',
	    	name:'myselfaccount',
	    	component:myselfaccount
	    },
	    {
	    	path:'/accountbill',
	    	name:'accountbill',
	    	component:accountbill
	    },
	    {
	    	path:'/accountinformation',
	    	name:'accountinformation',
	    	component:accountinformation
	    },
	    {
	    	path:'/deposit',
	    	name:'deposit',
	    	component:deposit
	    },
	    {
	    	path:'/Memberinfo',
	    	name:'Memberinfo',
	    	component:Memberinfo
	    },
	    
	    
	      /*店铺*/
	     {
	    	path:'/shop',
	    	name:'shop',
	    	component:shop
	    }, 
	    {
	    	path:'/applyshop',
	    	name:'applyshop',
	    	component:applyshop
	    }, 
	    {
	    	path:'/store',
	    	name:'store',
	    	component:store,
	    	meta:{
	    		title:'EWJ易网健管理平台'
	    	}
	    }, 
	    {
	    	path:'/personal-profile',
	    	name:'personalProfile',
	    	component:personalProfile
	    },
	      {
	    	path:'/personal-modification',
	    	name:'personalModification',
	    	component:personalModification
	    },
	    {
	    	path:'/myself-shop',
	    	name:'myselfShop',
	    	component:myselfShop
	    },
	    {
	    	path:'/editshop',
	    	name:'editshop',
	    	component:editshop
	    },
	    {
	    	path:'/order',
	    	name:'order',
	    	component:order
	    	/*component(resolve) {
            require(['@/shop/store/order.vue'], resolve)
            },
            meta: {
            keepAlive: true
          }*/
	    },
	    {
	    	path:'/orderinformation',
	    	name:'orderinformation',
	    	component:orderinformation
	    },
	    {
	    	path:'/userpick',
	    	name:'userpick',
	    	component:userpick
	    },
	    {
	    	path:'/scan',
	    	name:'scan',
	    	component:scan
	    },
	    {
	    	path:'/equipmentsend',
	    	name:'equipmentsend',
	    	component:equipmentsend
	    },
	    {
	    	path:'/equipmentallocation',
	    	name:'equipmentallocation',
	    	component:equipmentallocation
	    },
	    {
	    	path:'/apply',
	    	name:'apply',
	    	component:apply
	    },
	    {
	    	path:'/equipmentwarehousing',
	    	name:'equipmentwarehousing',
	    	component:equipmentwarehousing
	    },
	    {
	    	path:'/stock',
	    	name:'stock',
	    	component:stock
	    },
	    {
	    	path:'/staffsave',
	    	name:'staffsave',
	    	component:staffsave
	    },
	    {
	    	path:'/staffdetail',
	    	name:'staffdetail',
	    	component:staffdetail
	    },
	    {
	    	path:'/addstaff',
	    	name:'addstaff',
	    	component:addstaff
	    },
	    {
	    	path:'/transfer',
	    	name:'transfer',
	    	component:transfer
	    },
	    {
	    	path:'/returnrequest',
	    	name:'returnrequest',
	    	component:returnrequest
	    },
	    {
	    	path:'/returngoods',
	    	name:'returngoods',
	    	component:returngoods
	    },
	    {
	    	path:'/disinfect',
	    	name:'disinfect',
	    	component:disinfect
	    },
	    {
	    	path:'/disinfectapply',
	    	name:'disinfectapply',
	    	component:disinfectapply
	    },
	    {
	    	path:'/disinfectout',
	    	name:'disinfectout',
	    	component:disinfectout
	    },
	    
	    
	    /*业务员*/
	    {
	    	path:'/sign',
	    	name:'sign',
	    	component:sign,
	    	meta:{
	    		title:'EWJ易网健管理平台'
	    	}
	    },
	    {
	    	path:'/salesman',
	    	name:'salesman',
	    	component:salesman,
	    	meta:{
	    		title:'EWJ易网健管理平台'
	    	}
	    },
	    {
	    	path:'/shops',
	    	name:'shops',
	    	component:shops
	    },
	    {
	    	path:'/shopinfo',
	    	name:'shopinfo',
	    	component:shopinfo
	    },
	    
	    
	    
	    /*正在加载中*/
	    
	   {
	    	path:'/ewjloading',
	    	name:'ewjloading',
	    	component:ewjloading
	    }, 
	    {
	    	path:'/ewjmanageloading',
	    	name:'ewjmanageloading',
	    	component:ewjmanageloading
	    }, 
	    {
	    	path:'/ewjmyselfloading',
	    	name:'ewjmyselfloading',
	    	component:ewjmyselfloading
	    }, 
	    
	    
  	]
})
